set(src_dirs
            LED
            KEY
            UART
            XL9555
            MYIIC
            TIMG
            RTC
            RNG
            QMI8658A
            LCD
            TOUCH
            AP3216C
            SENSOR)

set(include_dirs
            LED
            KEY
            UART
            XL9555
            MYIIC
            TIMG
            RTC
            RNG
            QMI8658A
            TOUCH
            LCD
            AP3216C
            SENSOR)

set(requires
            driver
            newlib
            esp_adc
            esp_lcd)

idf_component_register(SRC_DIRS ${src_dirs} INCLUDE_DIRS ${include_dirs} REQUIRES ${requires})

component_compile_options(-ffast-math -O3 -Wno-error=format=-Wno-format)